

import pytest

@pytest.fixture()
def before():
    print('before执行啦....')

@pytest.fixture()
def use():
    print('use执行啦....')
@pytest.mark.usefixtures('before')
class Test_before():
    def setup(self):
        print('setup....')
    def test_a(self):
        print('test_a....')
    def test_b(self):
        print('test_b....')

@pytest.mark.usefixtures('use')
def test_c():
    print('test_c....')